package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLIntList;
import HLLib.base.HLString;
import HLLib.ui.HLUISeed;
import HLLib.ui.HLUISeedManager;

public class HLClassUISeedManager extends HLLibClass {
    public HLClassUISeedManager(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLUISeedManager();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLUISeedManager) self).Load(args.GetInt(0), args.GetInt(1));
            break;
        }
        case 1: {
            ((HLUISeedManager) self).LoadEX(args.GetInt(0), args.GetBoolean(0), args.GetBoolean(1), args.GetInt(1));
            break;
        }
        case 2: {
            ((HLUISeedManager) self).Loads(args.GetInt(0), args.GetInt(1), args.GetInt(2));
            break;
        }
        case 3: {
            ((HLUISeedManager) self).LoadList((HLIntList)args.GetObject(0), args.GetInt(0));
            break;
        }
        case 4: {
            ((HLUISeedManager) self).LoadAll(args.GetInt(0), args.GetInt(1));
            break;
        }
        case 5: {
            ((HLUISeedManager) self).UnLoad(args.GetInt(0));
            break;
        }
        case 6: {
            ((HLUISeedManager) self).Clear();
            break;
        }
        case 7: {
            if (resultOwnerObject == null) {
                ((HLUISeedManager) self).GetItem(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUISeedManager) self).GetItem(args.GetInt(0)));
            }
            break;
        }
        case 8: {
            ((HLUISeedManager) self).SetItem(args.GetInt(0), (HLUISeed)args.GetObject(0));
            break;
        }
        case 9: {
            if (resultOwnerObject == null) {
                ((HLUISeedManager) self).CreateUI(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUISeedManager) self).CreateUI(args.GetInt(0)));
            }
            break;
        }
        case 10: {
            if (resultOwnerObject == null) {
                ((HLUISeedManager) self).GetLanguageTextByScript((HLString)args.GetObject(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUISeedManager) self).GetLanguageTextByScript((HLString)args.GetObject(0)));
            }
            break;
        }
        }
    }
}
